<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增升级记录表')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ble_upgrade_recordinfo-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">Obu Sn号：</label>
                <div class="col-sm-8">
                    <input name="obuSn" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">obu旧版本号：</label>
                <div class="col-sm-8">
                    <input name="obuVersion" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">obu升级成功的新版本：</label>
                <div class="col-sm-8">
                    <input name="obuNewVersion" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙名称：</label>
                <div class="col-sm-8">
                    <input name="bluetoothName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙mac：</label>
                <div class="col-sm-8">
                    <input name="bluetoothMac" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙旧版本号：</label>
                <div class="col-sm-8">
                    <input name="bluetoothVersion" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙升级成功的新版本：</label>
                <div class="col-sm-8">
                    <input name="bluetoothNewVersion" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">升级时间：</label>
                <div class="col-sm-8">
                    <input name="upgradeTime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">操作员账号：</label>
                <div class="col-sm-8">
                    <input name="operAccount" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">升级标志：</label>
                <div class="col-sm-8">
                    <input name="isFlag" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">升级失败原因：</label>
                <div class="col-sm-8">
                    <input name="reason" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "ble_upgrade_recordinfo/ble_upgrade_recordinfo"
        $("#form-ble_upgrade_recordinfo-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-ble_upgrade_recordinfo-add').serialize());
            }
        }
    </script>
</body>
</html>